﻿#include "secondmathimplabc8.h"
#include "tools/base_math_tools.h"
SecondMathImplABC8::SecondMathImplABC8(QObject *parent)
{

}

const QString SecondMathImplABC8::fun()
{
    int num1,num2;
    do{
        num1 = BaseMathTools::generateRandomNumber(0, 100);
        num2 = BaseMathTools::generateRandomNumber(0, 100);
    }while(num1 + num2 > 100);

    QString temp =  QString::number(num1) + " "+STR_ADD_OPTION+" " +  QString::number(num2)+" =";
    return temp;
}
